<!DOCTYPE html>
<html lang="en">
	<head>
	  	<meta charset="UTF-8">
	    <meta name="renderer" content="webkit">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	    <title>建新街道移动办公 - E事通</title>
	    <link rel="stylesheet" href="/app/static/layui/css/layui.css">
	    <link rel="stylesheet" href="/app/static/styles/style.css">
	    <link rel="icon" href="image/code.png">
	    <script src="/app/static/scripts/jquery-1.9.1.js"></script>
	    <script type="text/javascript" src="/app/static//layui/layui.all.js"></script>
		<script type="text/javascript" src="/app/static/scripts/index.js"></script>
		<script src="/app/static/plugins/kindeditor/kindeditor-all-min.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body class="body">
		
		<a href="javascript:history.go(-1);" class="layui-btn">返回</a>	
		<form class="layui-form layui-form-labelw100" style="width: 500px;margin-top: 30px;">
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>标题</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>所属分类</label>
				<div class="layui-input-block">
					<select>
				        <option value="">超级管理员</option>
				        <option value="0">一级账户</option>
				        <option value="1">二级账户</option>
				        <option value="2">三级账户</option>
				        <option value="3">其他账户</option>
			      	</select>
				</div>
			</div>	
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>发布时间</label>
				<div class="layui-input-block">
					<input type="text" id="publishTime"  required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>排序</label>
				<div class="layui-input-block">
					<input type="number" required lay-verify="required" placeholder="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>文章内容</label>
				<div class="layui-input-block">
					<textarea class="layui-textarea" id="articleContent"></textarea>
				</div>
			</div>
			<div class="layui-form-item">
			    <label class="layui-form-label">发布状态</label>
			    <div class="layui-input-block">
			      <input type="radio" name="status" value="0" title="发布">
			      <input type="radio" name="status" value="1" title="草稿" checked>
			    </div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button type="reset" class="layui-btn layui-btn-primary">取消</button>
					<button class="layui-btn" lay-submit>提交</button>
				</div>
			</div>
		</form>
		
		
		
	
		<script type="text/javascript">
		
			var form = layui.form,
				layer = layui.layer,
				layedit = layui.layedit,
				laydate = layui.laydate

				form.render()
			
			
				laydate.render({
			       elem: '#publishTime' //指定元素
			     });
			
				
				KindEditor.ready(function(K) {
	                window.editor = K.create('#articleContent',{
	                	uploadJson : '../jsp/upload_json.jsp',
						fileManagerJson : '../jsp/file_manager_json.jsp',
						allowFileManager : true,
						height:500
	                });
		        });
			
				//取得编辑器内容
		        function getEditorData() {
		            return editor.html();
		        }
		
			
		</script>
	</body>

</html>